package com.kgc.scd.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * comment
 * @author 
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Comment implements Serializable {
    /**
     * 评价ID
     */
    @ApiModelProperty("评价ID")
    private Integer commId;

    /**
     * 评价商品ID
     */
    @ApiModelProperty("评价商品ID")
    private String commProid;

    /**
     * 评价内容
     */
    @ApiModelProperty("评价内容")
    private String commContent;

    /**
     * 评价时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("评价时间")
    private Date commDatetime;

    /**
     * 追加评价内容
     */
    @ApiModelProperty("追加评价内容")
    private String commAdd;

    /**
     * 追评时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("追评时间")
    private Date commAddDatetime;

    /**
     * 评价级别（默认1:好评  2:中评 3:差评）
     */
    @ApiModelProperty(value = "评价级别",notes = "默认1:好评  2:中评 3:差评")
    private Integer commLevel;

    /**
     * 批评人
     */
    @ApiModelProperty("评价人ID")
    private String commUserid;

    private static final long serialVersionUID = 1L;

}